package com.cnd.scm.code.generator.provider;


import com.cnd.scm.common.utils.CUtils;
import freemarker.template.TemplateMethodModel;
import freemarker.template.TemplateModelException;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TemplateMethodForUnderlineToCamel implements TemplateMethodModel{

	@Override
	public Object exec(List arg0) throws TemplateModelException {
		
		return CUtils.underlineToCamel(arg0.get(0).toString(),Boolean.valueOf(arg0.get(1).toString()));
	}

}
